progresstracker: Don't hand out NaN
authorBenjamin Otte <otte@redhat.com>
Sun, 12 Nov 2017 05:19:00 +0000 (06:19 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 Nov 2017 05:22:34 +0000 (06:22 +0100)
commitb47ff72ebc626180fc14459a66fd06e64fedcdb2
treef3891d42091787732e4792f3cb10732cfe4733d8
parent6eead8f6a3564e9b54a234188398b34cc7949f3b
progresstracker: Don't hand out NaN

When the duration is set to 0, clamp it to 1us. This way we're almost
correct: We should really instantly finish, but we don't. But we do
respect the delay.

Doing this properly would require some refactoring of how the progress
tracker actually maintains progress, and this is just a quick fix.
gtk/gtkprogresstracker.c